﻿using System.Windows.Forms;

namespace UI.StorageManagement
{
    public partial class FrmSto6a00Edit : UI.ParentForm.BaseEdit
    {
        public FrmSto6a00Edit(string action, string text, string key)
            : base(action)
        {
            InitializeComponent();

            this.Text = text;
            this.key = key;
            //回写的方法
            this.SaveCallFuntion = "Sto6a00Manager$SaveData"; //保存的方法
            if ("A" == this.Action)
            {
                IsAfterSaveCloseWin = false;
            }
            else
            {
                LoadData();
            }

            this.Size = base.MinWindow;
        }

        //加载修改数据
        private void LoadData()
        {
            base.LoadEditData(null, string.Format(" a.listid ='{0}' ", this.key));
        }
    }
}